package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 日志表 实体bean
 */
@TableName("t_record")
public class RecordBean {
    /** 日志Id */
    @TableId(value = "pk_recordId",type = IdType.AUTO)
    private Integer recordId;
    /** 登录日期 */
    @TableField("r_loginDate")
    private LocalDate loginDate=LocalDate.now();
    /** 日志内容 */
    @TableField("r_content")
    private String content;

    public RecordBean() {
    }



    public RecordBean( String content) {
        this.content = content;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public LocalDate getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(LocalDate loginDate) {
        this.loginDate = loginDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "RecordBean{" +
                "recordId=" + recordId +
                ", loginDate=" + loginDate +
                ", content='" + content + '\'' +
                '}'+'\n';
    }
}
